package com.dragon.mmochat.model.deal;

//借出记录
public class MmochatBorrowRecord implements Comparable<MmochatBorrowRecord> {
	private int borrowId;// 借方ID
	private String name;// 借方名字
	private long time = System.currentTimeMillis();// 借的时间

	public int getBorrowId() {
		return borrowId;
	}

	public void setBorrowId(int borrowId) {
		this.borrowId = borrowId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	@Override
	public int compareTo(MmochatBorrowRecord arg0) {
		return (int) (arg0.getTime() - time);
	}

}
